package com.ylaihui.dao;
import com.ylaihui.pojo.Book;
import java.util.List;

public interface BookDao {
    public int addBook(Book book);
    public int deleteBookById(Integer id);
    public int updateBook(Book book);
    public Book queryBookById(Integer id);
    public List<Book> queryBooks();

    Integer queryTotalCount();
    List<Book> queryPageItems(int begin, int pageSize);
    Integer queryTotalCountByPrice(int min, int max);
    List<Book> queryPageItemsByPrice(int begin, int pageSize, int min, int max);
}
